﻿namespace System.ServiceModel.DomainServices.Client
{
    using System;
    using System.Collections.Generic;
    using System.Runtime.Serialization;

    [DataContract(Namespace="DomainServices")]
    public abstract class QueryResult
    {
        private int _totalCount;

        protected QueryResult()
        {
        }

        public abstract IEnumerable<object> GetIncludedResults();
        public abstract IEnumerable<object> GetRootResults();

        [DataMember(EmitDefaultValue=false)]
        public int TotalCount
        {
            get
            {
                return this._totalCount;
            }
            set
            {
                this._totalCount = value;
            }
        }
    }
}

